<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>登录</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="./static/css/base.css" rel="stylesheet">
    <script src="./static/js/jquery.min.1.10.2.js" type="text/javascript" charset="utf-8"></script>
    <link href="./static/css/base.css" rel="stylesheet" charset="utf-8">
    <link rel="stylesheet" href="./css/login.css">
</head>

<body>
	<div class="logo_logo">
		<img src="./static/images/login1034.png" alt="">
	</div>
	<div class="logo_input">
		<input type="tel" name="tel" id="tel" placeholder="手机号">
		<input type="password" name="password" id="password" placeholder="密码">
	</div>
	<div class="logo_btn">
		<div class="login">登录</div>
		<div class="comment">
			<span class="registered">暂无账号 ? 去注册</span>
			<span class="forgetpsd">忘记密码 ?</span>
		</div>
	</div>
	<script>
		$(".registered").on("click",function(){
			window.location.href = './registered.html';
		})
		$(".forgetpsd").on("click",function(){
			window.location.href = './forgetpwd.html';
		})
		$(".login").on("click",function(){
			if ($('#tel').val() == '') {
                alert('手机号为空！');
            } else if ($('#password').val() == '') {
                alert('密码为空！');
            } else {
            	// console.log("找回密码",$('#tel').val(),$('#number').val(),$('#password').val())
             //    $.ajax({
             //        url: "",
             //        type: "POST",
             //        dataType: 'json',
             //        data: {
             //            name: $('#name').val(),
             //            grade :$('#grade').val(),
             //            tel: $('#tel').val()
             //        },
             //        success: function (data) {
                       
             //        }
             //    });
            window.location.href = './login.html';
         	}
		})

	</script>
</body>

</html>